provider Prevent GET
/api/0/organizations/{organization_id_or_slug}/prevent/owner/{owner}/repository/{repository}/test-results/ @utdk/sentry
/api/0/organizations/{organization_id_or_slug}/prevent/owner/{owner}/repository/{repository}/test-results/ Retrieve paginated list of test results for repository, owner, and organization
Retrieves the list of test results for a given repository and owner. Also accepts a number of query parameters to filter the results.
- organization_id_or_slug path required
- The ID or slug of the organization the resource belongs to.
- string
- owner path required
- The owner of the repository.
- string
- repository path required
- The name of the repository.
- string
- sortBy query
- The property to sort results by. If not specified, the default is `TOTAL_FAIL_COUNT` in descending order. Use `-` for descending order. Available fields are: - `AVG_DURATION` - `FLAKE_RATE` - `FAILURE_RATE` - `TOTAL_FAIL_COUNT` - `UPDATED_AT`
- string
- filterBy query
- An optional field to filter by, which will constrain the results to only include tests that match the filter. Available fields are: - `FLAKY_TESTS` - `FAILED_TESTS` - `SLOWEST_TESTS` - `SKIPPED_TESTS`
- string
- interval query
- The time interval to search for results by. Available fields are: - `INTERVAL_30_DAY` - `INTERVAL_7_DAY` - `INTERVAL_1_DAY`
- string
- branch query
- The branch to search for results by. If not specified, the default is all branches.
- string
- limit query
- The number of results to return. If not specified, defaults to 20.
- integer
- navigation query
- Whether to get the previous or next page from paginated results. Use `next` for forward pagination after the cursor or `prev` for backward pagination before the cursor. If not specified, defaults to `next`. If no cursor is provided, the cursor is the beginning of the result set.
- string
- cursor query
- The cursor pointing to a specific position in the result set to start the query from. Results after the cursor will be returned if used with `next` or before the cursor if used with `prev` for `navigation`.
- string
- term query
- The term substring to filter name strings by using the `contains` operator.
- string
Try it
Authentication
Configure credentials for API Reference
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import sentry from '@utdk/sentry';
await sentry.retrievePaginatedListOfTestResultsForRepositoryOwnerAndOrganization()